package so.sao.code.service.domain.event;

import lombok.AllArgsConstructor;
import lombok.Data;
import so.sao.code.service.infrastructure.enums.OPERATION;

/**
 * Created by Administrator on 2017/10/20.
 */
@Data
@AllArgsConstructor
public class EnterpriseUrlEvent {
    private String url;
    private Long eseId;

    private OPERATION action;


    public boolean isAddUrl() {
        return action == OPERATION.ADDURL;
    }

    public boolean isDelUrl() {
        return action == OPERATION.DELURL;
    }
}
